package com.CoreryBlack.controller;

import com.CoreryBlack.po.EmpLog;
import com.CoreryBlack.po.EmpLogQueryParam;
import com.CoreryBlack.po.PageBean;
import com.CoreryBlack.po.Result;
import com.CoreryBlack.service.EmpLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description LogController
 * @Author CoreryBlack
 * @Date 2024-09-25
 */

@Slf4j
@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private EmpLogService empLogService;


    @GetMapping("/{page}")
    public Result list(EmpLogQueryParam empLogQueryParam){
        PageBean pageBean = empLogService.list(empLogQueryParam);
        return Result.success(pageBean);
    }
}

